﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment.Sophia
{
    public partial class addCustomersDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }






        protected void EditButton_Click(object sender, EventArgs e)
        {
            string[] arg = new string[4];
            arg = ((LinkButton)sender).CommandArgument.ToString().Split(',');
            string customerID = arg[0];
            string contactNo = arg[1];
            string address = arg[2];
            string email = arg[3];

            string querystring = "customerID=" + customerID + "&contactNo=" + contactNo + "&address=" + address + "&email=" + email;
            
            Server.Transfer("~/Sophia/editCustomersDetails.aspx?" + querystring);
        }








        
    }
}